package com.zq.多线程设计模式.Immutable设计模式;

/**
 * @author Jiu
 * @description：TODO
 * @date 2021/04/08   10:57
 **/
public class OMCAgent extends Thread {

    @Override
    public void run() {
        boolean isTableModificationMsg = false;
        String updatedTableName = null;

        while (true) {
            System.out.println("OMCAgent running");
            if (isTableModificationMsg) {
                if ("MMSCInfo".equals(updatedTableName)) {
                    MMSCRouter.setInstance(new MMSCRouter());
                }
            }
        }
    }
}